// function $(a) {
//     return document.getElementsByClassName(a)[0]
// }
// import $ from 'jquery'

function alert(target,text) {
    if (target.children[3]) {
        target.removeChild(target.children[3])
    }
    if (text!=='正确'){
        let el =document.createElement('span');
        el.innerText=text
        el.classList.add('alert');
        target.appendChild(el)
    }
}

export {
    alert
}